# 只有两个元素的排列
"""
def sotr_num(list_val:list):
    if list_val[0] < list_val[1]:
        tmp = list_val[0]
        list_val[0] = list_val[1]
        list_val[1] = tmp

test_list = [3,4]
print(test_list)
sotr_num(test_list)
print(test_list)
"""
# 多个元素
def sort_num2(list_val:list):
    num_len = len(list_val)
    for i in range(0,num_len,1):
        for j in range(0,num_len,1):
            if list_val[i] > list_val[j]:
                tmp = list_val[j]
                list_val[j] = list_val[i]
                list_val[i] = tmp

test_list = [4,6,8,9,11,34,67]
print(test_list)
sort_num2(test_list)
print(test_list)